<template>
	<view class="main">
		<view class="jx">
			<view class="word" @click="photo()">				
				<text>宝宝头像</text>
				<view class="circle"></view>
				<image src="../../static/Snipaste_2022-12-01_08-29-05.png" class="img"></image>		
			</view>
			
			<view class="word" @tap="name">
				<text>昵称</text>
				<view class="title">梓宁</view>
				<image src="../../static/Snipaste_2022-12-01_08-29-05.png" class="img"></image>		
			</view>
			
			<view class="word" @click="sex()">
				<text>性别</text>
				<view class="title1">女</view>
				<image src="../../static/Snipaste_2022-12-01_08-29-05.png" class="img"></image>		
			</view>
				
				
			<view class="word">
				<text >出生日期</text>
					<picker mode="multiSelector" @columnchange="bindMultiPickerColumnChange" :value="multiIndex" :range="multiArray" style="opacity: 0.5;width: 50%;margin-top: 8px;">
						{{ multiArray[0][multiIndex[0]] }}
						{{ multiArray[1][multiIndex[1]] }}
						{{ multiArray[2][multiIndex[2]] }}
					</picker>
					<!-- <view class="title2">2019/06/19</view> -->
					<image src="../../static/Snipaste_2022-12-01_08-29-05.png" class="img"></image>		
			</view>
			
			<view class="word" @click="growth()">
				<text>身高</text>
				<view class="title1">55cm</view>
				<image src="../../static/Snipaste_2022-12-01_08-29-05.png" class="img"></image>		
			</view>
			
			<view class="word">
				<text>体重</text>
				<view class="title1">15kg</view>
				<image src="../../static/Snipaste_2022-12-01_08-29-05.png" class="img"></image>		
			</view>
					
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				multiArray: [['2018年', '2019年'], ['6月', '7月','8月'], ['1日', '2日']],
				multiIndex: [0, 0, 0]
			}
		},
		methods: {
			photo(id){
				uni.showActionSheet({
					itemList:['拍照','相册'],
					itemColor:"blue"
				})
			},
			sex(id){
				uni.showActionSheet({
					itemList:['男','女'],
					itemColor:"blue"
				})
			},
			name(){
				uni.navigateTo({
					url:'/pages/changeName/changeName'
				})
			},
			growth(){
				uni.navigateTo({
					url:'/pages/growth/growth'
				})
			}
		}
	}
</script>

<style>
	.main{
		position: fixed;
		height: 100%;
		width: 100%;
		background-color: gainsboro;
		display: flex;
		flex-direction: column;
		align-items: center;	
	}
	
	.jx{
		width: 98%;
		/* height:100%; */
		background-color:white;
		border-radius:3px;
		margin-top: 10px;
	}
	
	.word{
		width: 100%;
		height: 40px;
		display: flex;
		flex-direction: row;
		justify-content: space-between;
		margin-top: 10px;
		margin-bottom: 10px;
		box-shadow:0px 1px gainsboro;
		
	}
	
	.word{
		width: 99%;
		height: 40px;
		display: flex;
		flex-direction: row;
		margin-top: 10px;
		margin-bottom: 10px;
		box-shadow:0px 1px gainsboro;
			
	}
	
	
	.circle{	
		display: inline-block;
		width: 35px;
		height:35px;
		background-color: gainsboro;
		border-radius: 50%;
		/* margin-top: 8px;
		margin-left: 850px; */
	}
	
	.img{
		height: 35px;
		width: 35px;
		display: inline-block;
		/* margin-top: 8px;
		margin-left: 900px; */
	}
	
	.word text{
		margin-left: 10px;
		display: inline-block;
		height: 35px;
		width: 90%;
		line-height: 37px;
		font-size: 15px;
	}
	
	.title{
		display: inline-block;
		height: 10px;
		width: 40px;
		margin-top: 5px;
		opacity: 0.5;
		/* margin-left: 8px; */
		/* margin-right: 1px; */
	}
	
	.title1{
		display: inline-block;
		height: 10px;
		width: 40px;
		margin-top: 5px;
		opacity: 0.4;
		/* margin-left: 75px; */
		/* margin-right: 1px; */
	}
	
	.title2{
		display: inline-block;
		height: 10px;
		width: 90px;
		margin-top: 5px;
		opacity: 0.5;
		/* margin-right: 50px; */
		opacity: 0.4;
		/* margin-right: 1px; */
	}


	
</style>
